import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

/**
 * InputLearning
 */
public class InputLearning {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个数：");
        System.out.println("你输入的数是：" + scanner.nextInt());
        InputStreamReader in = new InputStreamReader(System.in);
        System.out.println("请输入一段话：");
        BufferedReader reader = new BufferedReader(in);
        try {
            System.out.println("你输入的字符串是：" + reader.readLine());
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}